﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using Umi.Web.Metadatas.Attributes;

namespace Umi.Web.Middleware.Sample.DependencyInject
{
    [Startup]
    public class SampleStartup
    {
        public void ConfigureService(IServiceCollection service)
        {
            service.AddScoped<SampleMiddleware>();
        }

        public void Configure(IApplicationBuilder app)
        {
            app.UseMiddleware<SampleMiddleware>();
        }
    }
}
